package cn.pupil.design.user.impl;

import cn.pupil.design.user.User;
import cn.pupil.design.visitor.Visitor;

/**
 * @Description: 学生类
 * @Author: pupil
 * @Date: 2024/08/02 上午 10:33
 */
public class Student extends User {
    public Student(String name, String identity, String clazz) {
        super(name, identity, clazz);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    // 排名
    public int ranking(){
        return (int) (Math.random()*100);
    }
}
